﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Practices.Composite.Regions;


namespace EQual.MainModule.Employees.Trainings
{
    public class TrainningsPresentationModel : EQual .Infrastructure .MVPFramework .Models .PresentationModelBase <DataAccesLayer .Training >
    {
        public TrainningsPresentationModel()
        {
            this.DataFactory = new DataAccesLayer.EQualDataLayerFactory();
        }

        protected override IEnumerable<DataAccesLayer.Training> GetCollection()
        {
            return DataFactory.GetEmployeeAccesLayer().GetTrainings() as IEnumerable<DataAccesLayer.Training>;
        }
    }
}
